package com.cartrentalsystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cartrentalsystem.domain.po.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cartrentalsystem.domain.vo.EmployeeVo;
import com.cartrentalsystem.domain.vo.Result;
import jakarta.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LHD
 * @since 2025-06-16
 */
public interface IEmployeeService extends IService<Employee> {

    Result<Page<Employee>> pageList(Integer page, Integer size, Integer role, String name, Integer status);

    Result<String> addEmployee(Employee employee);

    Result<String> updateEmployee(Employee employee);

    Integer getIdByNameAndRole(String employeeName,Integer role);

    EmployeeVo login(String username, String password, String uuid, String code, HttpServletResponse response);
}
